<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\Route;

Route::get('/', 'index/Index/index');
Route::get('/admin/index/logout', 'admin/index/logout');
Route::get('/admin', 'admin/index/index');
Route::post('/admin/index/logindo', 'admin/index/logindo');
Route::get('/admin/index', 'admin/main/index');
Route::get('/admin/user', 'admin/con1/index');
Route::get('/admin/adduser', 'admin/con1/func1');
Route::post('/admin/doadduser', 'admin/con1/doadduser');
Route::get('/readpage','admin/con1/readpage');
Route::get('/xiangqing','admin/con1/xiangqing');
Route::post('/doadduj', 'admin/con1/doadduj');
Route::get('/admin/juese', 'admin/con2/func1');
Route::get('/admin/addjuese', 'admin/con2/addjuese');
Route::post('/admin/doaddjuese', 'admin/con2/doaddjuese');
Route::get('/jj','admin/con2/jj');
Route::post('/doaddjj', 'admin/con2/doaddjj');
Route::get('/admin/jiedian', 'admin/jiedian/index');
Route::get('/admin/addjiedian', 'admin/jiedian/addjiedian');
Route::post('/admin/doaddjiedian', 'admin/jiedian/doaddjiedian');
Route::get('admin/jiedian', 'admin/jiedian/index');

//banner
Route::get('/admin/banner', 'admin/banner/index');
Route::post('/admin/bannersave', 'admin/banner/save');
Route::get('/bannerdel', 'admin/banner/del');
//公告栏
Route::get('/admin/notice', 'admin/notice/index');
Route::post('/admin/noticesave', 'admin/notice/save');
Route::get('/noticedel', 'admin/notice/del');

//qq登录
Route::get('qq','index/qq/qqLogin');
Route::get('qq/qqCallback','index/qdemo/qqLogin');


// 后台分类管理
Route::get('/sorted','admin/Sorted/index');
Route::get('/addsorted','admin/Sorted/add_sorted');
Route::get('/delete_sorted','admin/Sorted/delete');
Route::post('/doaddsorted','admin/Sorted/doadd_sorted');

//个人中心
Route::get('/geren','index/Geren/index');
//修改个人头像
Route::get('/editgeren','index/Geren/edit');
Route::post('/doeditgeren','index/Geren/doedit');

// 后台广告管理
Route::get('/adj','admin/Adj/index');
Route::get('/addadj','admin/Adj/add_adj');
Route::get('/deleteadj','admin/Adj/delete_adj');
Route::post('/doaddadj','admin/Adj/doadd_adj');

// 展示前台登录
Route::get('login', 'Login/Login/index');
// 点击登录验证
Route::post('loginto','Login/Login/loginto');
// 后台显示前台用户列表
Route::get('iindex', 'admin/party/index');
// 后台用户激活禁用
Route::get('/done/:state', 'admin/party/done');
// 短信高级验证,接口
Route::post('/sendSMS','Login/Login/sendSMS');
// 注册用户
Route::post('register','Login/Login/register');
// 退出
Route::get('/logout','index/Index/logout');





//前台注册
//显示前台页面
Route::get('/registe', 'index/Login/registe');


















return [

];
